#ifndef SERVICE_UART_H_
#define SERVICE_UART_H_

typedef U8 UartNumber;
typedef U32 UartHandle;


extern U8 service_uart_getNumberOfAvailablePorts(void);
extern UartNumber *service_uart_getAvailablePorts(void);
extern void service_uart_init(void);
extern UartHandle service_uart_open(UartNumber uart);
extern BOOL service_uart_close(UartHandle handle);
extern BOOL service_uart_sendByte(UartHandle handle, U8 byte);
extern BOOL service_uart_sendStream(UartHandle handle, U8 *stream, U32 size);
extern BOOL service_uart_receiveByte(UartHandle handle, U8 *byte);
extern BOOL service_uart_receiveStream(UartHandle handle, U8 *byte, U32 size);

#endif /*SERVICE_UART_H_*/
